#include<stdio.h>
void Fibonacci(int lenth)
{
	int i;
	unsigned long x,y,z;
	x = y = 1;
	for(i = 0;i < lenth;i++)
	{
		printf("%lu\n",x);
		z = x + y;
		x = y;
		y = z;
	}
} 
int main()
{
	int n;
	printf("Please enter:");
	while(scanf("%d",&n))
	{
		printf("Top %d items of Fibonacci sequence:\n", n);
        Fibonacci(n);
        printf("You can enter again (<= 0 or q to quit): ");
	}
	printf("Done");
	return 0;
}
